using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPsRoyalItem")]
    public class PsRoyalItem
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "RoyalItemId", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public int RoyalItemId { get; set; }

		[ForeignKey("RoyalItemType")]
		[DataMember, Display(Name = "RoyalItemTypeId", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public Nullable<int> RoyalItemTypeId { get; set; }

		[DataMember, Display(Name = "RoyalItemCode", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public string RoyalItemCode { get; set; }

		[DataMember, Display(Name = "RoyalItemName", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public string RoyalItemName { get; set; }

		[DataMember, Display(Name = "RoyalItemNameShort", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public string RoyalItemNameShort { get; set; }

		[DataMember, Display(Name = "RoyalItemLevel", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public string RoyalItemLevel { get; set; }

		[DataMember, Display(Name = "RoyalItemGroup", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public string RoyalItemGroup { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PsRoyalItemsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual HRM.PsRoyalItemType RoyalItemType { get; set; }

    }
}